package com.xxl.job.admin.dao;

import com.xxl.job.admin.core.model.JobLogModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by xuxueli on 16/9/30.
 */
@Mapper
public interface JobLogDao {

    public List<JobLogModel> pageList(@Param("offset") int offset,
                                      @Param("pagesize") int pagesize,
                                      @Param("jobCode") String jobCode,
                                      @Param("jobClass") String jobClass,
                                      @Param("startTime") Date startTime,
                                      @Param("endTime") Date endTime,
                                      @Param("jobLogUser") String jobLogUser,
                                      @Param("jobResult") String jobResult);

    public int pageListCount(@Param("offset") int offset,
                             @Param("pagesize") int pagesize,
                             @Param("jobCode") String jobCode,
                             @Param("jobClass") String jobClass,
                             @Param("startTime") Date startTime,
                             @Param("endTime") Date endTime,
                             @Param("jobLogUser") String jobLogUser,
                             @Param("jobResult") String jobResult);

}
